package com.centaline.androidsalesblog.model.businissobject;

import com.centaline.androidsalesblog.model.databaseobject.PostDo;
import com.centaline.androidsalesblog.model.databaseobject.StaffDo;

import java.util.ArrayList;

/**
 * 已约看-经纪人下房源列表
 * Created by ruanzb on 2016/3/24.
 */
public class ReserveStaffNoBo {

    //委托时间
    private long updateTime;
    //相同委托时间对应的房源Ids
    private ArrayList<String> postIds;
    //相同委托时间对应的房源数据
    private ArrayList<PostDo> postList;
    //经纪人编号
    private String staffNo;
    //经纪人
    private StaffDo staffDo;

    public ReserveStaffNoBo(long updateTime, String staffNo) {
        this.updateTime = updateTime;
        this.staffNo = staffNo;
        postIds = new ArrayList<>();
        postList = new ArrayList<>();
    }

    public void addPostId(String postId) {
        postIds.add(postId);
    }

    public void addPost(PostDo postDo) {
        postList.add(postDo);
    }

    public long getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(long updateTime) {
        this.updateTime = updateTime;
    }

    public String getStaffNo() {
        return staffNo;
    }

    public void setStaffNo(String staffNo) {
        this.staffNo = staffNo;
    }


    public StaffDo getStaffDo() {
        return staffDo;
    }

    public void setStaffDo(StaffDo staffDo) {
        this.staffDo = staffDo;
    }

    public ArrayList<String> getPostIds() {
        return postIds;
    }

    public ArrayList<PostDo> getPostList() {
        return postList;
    }
}
